package com.xxx.delayjob;

import com.xxx.delayjob.listener.SystemListener;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * https://mp.weixin.qq.com/s/TI6ba39T6gtn5l87Gx55sg
 */
@SpringBootApplication
@MapperScan("com.xxx.delayjob.mapper")
public class DelayJobApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(DelayJobApplication.class);
        springApplication.addListeners(new SystemListener()); // 添加listener
        springApplication.run(args);
    }

}
